import request from '@/utils/request'
// 查询用电单位基本情况
export const getdianwujiben = params => request.get('pio-microservice-biz/pio/home/subburo/base', { params })

export const getgongsijibenapi = params => request.get('pio-microservice-biz/pio/home/subburo/alarm', { params })
// 查询用电单位终端情况
export const getzhongduanapi = params => request.get('pio-microservice-biz/pio/home/subburo/terminal', { params })
// 查询用电单位电量情况
export const getyongdianapi = params => request.get('pio-microservice-biz/pio/home/subburo/epower', { params })
// 查询用电单位负荷情况
export const getyongdianfuheapi = params => request.get('pio-microservice-biz/pio/home/subburo/load', { params })
// 获取树
export const gettreelist=()=>request.get('pio-microservice-biz/cbm/organization/manage/list')
// 获取树下级
export const gettreexiaji = params => request.get('pio-microservice-biz/cbm/organization/company/list', { params })
// 获取当前登录人单位信息
export const getloginuserapi = () => request.get('pio-microservice-biz/pio/common/user/org')
// 获取用户下拉菜单
export const getyonghuxialaapi = () => request.get('pio-microservice-biz/cbm/organization/company/list')
// 获取光伏总发电量
export const getguangfuapi = () => request.get('core/iot/data/device-item/data-view/list?deviceId=10012450')
// 获取日用电量
export const getriyongdianliang = params => request.get('pio-microservice-biz/pio/statement/epower/day/device-hour/get', { params })
// 获取月发电量数据
export const getyuefadianliang=params=>request.get('pio-microservice-biz/pio/statement/epower/month/device-day/get',{params})